import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
import router from './router'
import config from './config.js'
import Vuex from 'vuex'
import echarts from 'echarts'
import store from './store'
import axios from '@/utils/request.js'
import VueAxios from 'vue-axios'
import 'lib-flexible/flexible'
import moment from 'moment'
import jquery from 'jquery'
import VueCookies from 'vue-cookies'
import VueAwesomeSwiper from 'vue-awesome-swiper'
// import style
import 'swiper/swiper-bundle.css'

Vue.use(VueCookies)
Vue.use(Vuex)
Vue.use(ElementUI)
Vue.use(global)
Vue.use(config)
Vue.use(VueAwesomeSwiper, /* { default options with global component } */)

Vue.config.productionTip = false
Vue.prototype.$echarts = echarts
Vue.use(VueAxios, axios)
Vue.prototype.$axios = axios
Vue.prototype.$moment = moment
Vue.prototype.$ = jquery
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store, // store:store 和router一样，将我们创建的Vuex实例挂载到这个vue实例中
  template: '<App/>',
  components: {
    App
  }
})

